package com.whd.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

@TableName("meeting")
@Data
public class Meeting {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private Integer houseId;
    private Integer tenantId;
    private Date meetTime;
    private String meetAddress;

    // TableField注解表示数据库不存在的字段，而Java中需要使用，加上这个注解就不会报错
    @TableField(exist = false)
    private String name;
}
